package com.me.bbs.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.ViewRecordDTO;
import com.me.bbs.entity.ViewRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
public interface IViewRecordService extends IService<ViewRecord> {
    Page<ViewRecordDTO> getViewRecordList(Page<ViewRecord> page, Wrapper<ViewRecord> wrapper);

    Long getTodayViewCountByForum(Long forumId, LocalDateTime dateTime);
}
